package com.starblink.library.widget.loading

import android.view.ViewGroup
import com.starblink.android.basic.adapter.BaseVH
import com.starblink.android.basic.bean.loading.GoodsCardLoadingModel
import com.starblink.android.basic.ext.toastUI

/**
 * 商品卡片加载过渡View Cell
 * Create by yuanl at 2023/03/28
 */
class GoodsCardLoadingCell(group: ViewGroup) :
    BaseVH<GoodsCardLoadingModel>(GoodsCardLoadingView(group.context)) {

    override fun onBind(model: GoodsCardLoadingModel, position: Int) {
    }

    companion object {

        @JvmStatic
        val LOADING_DATA = arrayListOf<GoodsCardLoadingModel>().apply {
            repeat(2) {
                add(
                    GoodsCardLoadingModel(
                        index = it
                    )
                )
            }
        }

    }
}